#@ shell = /bin/bash
#@ job_name = kumar.collective.table.512SMP
#@ output = $(job_name).$(jobid).out
#@ error = $(job_name).$(jobid).err
#@ class = development
#@ job_type = bluegene
#@ bg_size = 256
#@ wall_clock_limit = 00:05:00
#@ queue

MUSIC_SEQ=/home/remedius/BUILD_music_seq/
BENCHMARK=/home/remedius/benchmarks/kumar/ 
SUBMITDIR=/scratch/remedius/
CURDIR=${PWD}
echo $CURDIR

$MUSIC_SEQ/bin/music -f kumar.music 

cp music.map $SUBMITDIR
cp $BENCHMARK/kumar1 $SUBMITDIR
cp $BENCHMARK/kumar2 $SUBMITDIR
cd $SUBMITDIR
mpiexec -mode VN : -wdir . -n 512 ./kumar1 kumar1 :  -wdir . -n 512 ./kumar2 kumar2
cp  * $CURDIR
